<div class="vheader">
    <h1><?php echo $this->Surveys->d->Name ?></h1>
    <p><?php echo $this->Surveys->d->Status ?>
</div>

<div class="vcontent">
<?php echo $this->Surveys->d->Description ?>
<ol>
<?php foreach($this->Surveys->r->question as $question) : ?>
    <li><a target="_self" href='/survey/question/view/QuestionId/<?php echo $question->QuestionId ?>/SurveyId/<?php echo $this->Surveys->d->SurveyId ?>'>
        <?php echo $question->Question ?></a></li>
    <ol class="lower-alpha">
    <?php foreach($question->findDependentRowset('Answers') as $answer) : ?>
        <li>[<?php echo $answer->Score ?>] <?php echo $answer->Answer ?></li>
    <?php endforeach ?><br />
    </ol>
<?php endforeach ?>
</ol>
    <br /><br />
</div>

<div class="vfooter">
    <div class="menu">
        <?php echo $this->link('/survey/survey/apply', array('id'=>$this->Surveys->d->SurveyId,'client'=>'1'),$this->translate("Apply survey")) ?>              
    </div>
</div>


